<!DOCTYPE html>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<html lang="pt-br">
	<head>
    	<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
    	<meta name="description" content="Boss; Gestão de clínica; Consultas; Pacientes; Funcionários; Controle financeiro;">
   		<meta name="author" content="Douglas Fernandes; Marcos Aguiar">
   		<meta name="viewport" content="width=device-width, initial-scale=1.0">
    	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/stylesheets/login.css"/>
    	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/stylesheets/style.css"/>
    	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.css"/>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/bootstrap/css/carousel.css">
    	
		<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
		<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
		<script type="text/javascript" src="${pageContext.request.contextPath}/javascripts/ie-emulation-modes-warning.js"></script>
		
		<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
		<script type="text/javascript" src="${pageContext.request.contextPath}/javascripts/ie10-viewport-bug-workaround.js"></script>
		
		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
	      	<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	      	<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
	    <![endif]-->
		
    	<script type="text/javascript" src="${pageContext.request.contextPath}/javascripts/jquery.js"></script>
    	<script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.js"></script>
		<title>BOSS</title>
	</head>
	<body>
		<div class="container">
			<div class="content">
		    	<div class="row">
		        	<div class="login-form">
		          		<h2>BOSS</h2>
						<form id="defaultForm" action="j_spring_security_check" method="POST">
		            		<fieldset>
		              			<div class="input-prepend">
		              				<span class="add-on"><i class="icon-user"></i></span>
									<input class="span2" id="prependedInput" type="text" name="j_username" placeholder='<fmt:message key="login.field.usuario"/>'/>
		              			</div>
		              			<div class="input-prepend">
		              				<span class="add-on"><i class="icon-asterisk"></i></span>
									<input class="span2" id="prependedInput" type="password" name="j_password" placeholder='<fmt:message key="login.field.senha"/>'/>
								</div>
								<button class="btn btn-primary" type="submit"><i class="icon-off icon-white"></i> Acessar</button>
		            		</fieldset>
		          		</form>
		        	</div> <!-- /login-form -->
		      	</div> <!-- /row -->
			</div> <!-- /content -->
		</div> <!-- /container -->
		
		<div class="errors">
			<c:if test="${not empty errors}">
				<div class="alert alert-error">
					<button type="button" class="close" data-dismiss="alert">&times;</button>
					<c:forEach items="${errors}" var="error">
						<h4>Aviso</h4>
						${error}
					</c:forEach>
				</div> <!-- /alert -->
			</c:if>
		</div> <!-- /errors -->
	</body>
</html>